package com.pearadmin.pro.modules.paper.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pearadmin.pro.modules.paper.dto.request.PaperListReqDTO;
import com.pearadmin.pro.modules.paper.dto.response.PaperListRespDTO;
import com.pearadmin.pro.modules.paper.entity.Paper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 试卷Mapper
 * @author ZhouXingYun
 * @date 2022/5/23 17:22
 */
@Mapper
public interface PaperMapper extends BaseMapper<Paper> {

    /**
     * 查找试卷分页
     * @param page
     * @param query
     * @return
     */
    IPage<PaperListRespDTO> paging(Page page, @Param("query") PaperListReqDTO query);

}
